package com.efast.dmom.mes.entity;

import java.math.BigDecimal;

import com.efast.dmom.mes.entity.base.PartRelateBaseEntity;

/**
 * 
 * @author William Wu
 * @Date 2020年2月13日
 * PartAlternate 替代料
 */
public class PartAlternateEntity extends PartRelateBaseEntity {


	private static final long serialVersionUID = 7563469974035836903L;
	
	private long partId;
	private String partNo;
	private String partRevision;
	
	
	private long alternatePartId;
	private String alternatePartNo;
	private String alternatePartRevision;
	
	
	private BigDecimal conversionFactor; //换算系数 1比1；1比2等等
	private BigDecimal maxReplacementPercent; //替换比例
	
	public long getPartId() {
		return partId;
	}
	public void setPartId(long partId) {
		this.partId = partId;
	}
	public String getPartNo() {
		return partNo;
	}
	public void setPartNo(String partNo) {
		this.partNo = partNo;
	}
	public String getPartRevision() {
		return partRevision;
	}
	public void setPartRevision(String partRevision) {
		this.partRevision = partRevision;
	}
	public long getAlternatePartId() {
		return alternatePartId;
	}
	public void setAlternatePartId(long alternatePartId) {
		this.alternatePartId = alternatePartId;
	}
	public String getAlternatePartNo() {
		return alternatePartNo;
	}
	public void setAlternatePartNo(String alternatePartNo) {
		this.alternatePartNo = alternatePartNo;
	}
	public String getAlternatePartRevision() {
		return alternatePartRevision;
	}
	public void setAlternatePartRevision(String alternatePartRevision) {
		this.alternatePartRevision = alternatePartRevision;
	}

	public BigDecimal getConversionFactor() {
		return conversionFactor;
	}
	public void setConversionFactor(BigDecimal conversionFactor) {
		this.conversionFactor = conversionFactor;
	}
	public BigDecimal getMaxReplacementPercent() {
		return maxReplacementPercent;
	}
	public void setMaxReplacementPercent(BigDecimal maxReplacementPercent) {
		this.maxReplacementPercent = maxReplacementPercent;
	}
	@Override
	public String toString() {
		return "PartAlternateEntity [partId=" + partId + ", partNo=" + partNo + ", partRevision=" + partRevision
				+ ", alternatePartId=" + alternatePartId + ", alternatePartNo=" + alternatePartNo
				+ ", alternatePartRevision=" + alternatePartRevision + ", conversionFactor=" + conversionFactor
				+ ", maxReplacementPercent=" + maxReplacementPercent + "]";
	}

	
}
